
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>报警记录 </title>
<link rel="stylesheet" type="text/css" href="ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="ui/themes/icon.css">
<script type="text/javascript" src="ui/jquery.min.js"></script>
<script type="text/javascript" src="ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="ui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript">

/* var method=""; *///全局变量：方法名称 

$(function(){
	
	$('#grid').datagrid({
		url:'AlarmAction.action',
		columns:[[
		   {field:'username',title:'车辆编号',width:100},      
		   {field:'fencename',title:'围栏名称',width:100},      
		   {field:'description',title:'信息描述',width:100},
		   {field:'createtime',title:'报警时间',width:100}
		 ]],
		 //pagination:true,

	});
	//条件查询
	$('#btnSearch').bind('click',function(){
		//得到表单数据(json对象)
		var formdata= getFormData('searchForm');
		//alert(JSON.stringify(formdata));
		//执行条件查询 
		$('#grid').datagrid('load',formdata);
		
	});
	
</script>

</head>
<body>

<div class="easyui-panel">
<form id="searchForm">
车辆编号：<input name="alarm.username">  

<button id="btnSearch" type="button">查询</button>
</form>
</div>

<table id="grid"></table>
</body>
</html>